package org.example;

import java.io.File;

import cn.hutool.core.io.file.FileWriter;

/**
 * Hello world!
 *
 */
public class App {

    public static void main(String[] args) {
        System.out.println("Hello World!");
        FileWriter writer = new FileWriter("/Users/zhangjungang/test.properties");
        String s = "abcde123456789";
        byte[] arr = s.getBytes();
        File file = writer.write(arr, 0, args.length);
        System.out.println("==length=" + arr.length);

        // FileReader fileReader = FileReader.create(new File("/Users/zhangjungang/test.properties"));
        // byte[] bytes = fileReader.readBytes();
        // System.out.println("--------"+new String(bytes));

    }
}
